/*
 * @Author: 袁十一
 * @Date: 2023-09-25 19:21:43
 * @LastEditTime: 2023-09-25 20:07:42
 * @LastEditors: 袁十一
 * @Description:
 * @FilePath: \Vue3_admin_template\src\router\index.ts
 * 初心不变，意志坚定
 */
import { createRouter, createWebHashHistory } from 'vue-router'
import { constantRoute } from './router'
const router = createRouter({
  // 路由模式hash
  history: createWebHashHistory(),
  routes: constantRoute,
  // 滚动行为
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    }
  },
})
export default router
